package book;

public class BookList {
    private Book[] list;
    private int used_size;
    private int capacity;

    public int getUsed_size() {
        return used_size;
    }

    public void setUsed_size(int used_size) {
        this.used_size = used_size;
    }

    public BookList(int capacity) {
        this.capacity = capacity;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public Book[] getList() {
        return list;
    }

    public void setList(Book[] list) {
        this.list = list;
    }
    public Book getBook(int pos){ return list[pos]; }
    public void setBook(int pos, Book book){ list[pos] = book; }

}
